* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    color: #333
}

.container {
    position: relative; /*相对位置*/
    /* 最小高度 */
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* 半边圆 */
.container::before {
    content: '';
    position: absolute;
    width: 2000px;
    height: 2000px;
    border-radius: 50%;
    background-image: linear-gradient(-45deg, #6266f5 0%, #04befe 100%);
    transition: 1.8s ease-in-out;
    z-index: 6; /*z-index 属性设置元素的堆叠顺序。拥有更高堆叠顺序的元素总是会处于堆叠顺序较低的元素的前面,Z-index 仅能在定位元素上奏效（例如 position:absolute;） */
    top: -10%;
    right: 48%;
    transform: translateY(-50%); /*在Y轴进行2D转换,-50%是在Y轴的位置*/
}

.container.sign-up-mode::before {
    transform: translate(100%, -50%);
}

.form-warp {
    width: 50%;
    position: absolute;
    z-index: 5;
    left: 75%;
    top: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    /* 网格布局 */
    display: grid;
    grid-template-columns: 1fr; /*四列网格布局，fr网格元素的单位，和 %,px一样*/
    transition: 1s 0.7s ease-in-out; /*转换延迟1s，完成持续花0.7s,缓入缓出*/
}

.form-warp form {
    /* 弹性布局 */
    display: flex;
    align-items: center; /*定义flex子项在flex容器的当前行的侧轴（纵轴）方向上的对齐方式*/
    justify-content: center; /*justify-content属性定义了项目在主轴上的对齐方式*/
    flex-direction: column; /*决定主轴的方向*/
    gap: 20px; /*设置网格行与列之间的间隙*/
    /* 将两个form布局在grid同一位置上 */
    grid-row: 1/2;
    grid-column: 1/2;
    transition: all 0.2s 0.7s;
    opacity: 1; /*设置透明度 1完全不透明*/
    z-index: 4;
}

.from-title {
    color: #6266f5;
}

.form-warp .sign-up-form {
    opacity: 0;
    z-index: 3;
}

.container.sign-up-mode .form-warp {
    left: 25%;
}

.container.sign-up-mode .sign-in-form {
    opacity: 0;
    z-index: 3;
}

.container.sign-up-mode .sign-up-form {
    opacity: 1;
    z-index: 4;
}

input,
.submit-btn {
    min-width: 300px;
    outline: none;
    padding: 12px 30px;
    line-height: 1;
    font-size: 16px;
    border-radius: 60px;
    color: #333;
    background-color: #6267f513;
    border: none;
}

input::placeholder {
    color: #cccc;
}

.submit-btn {
    background-color: #6266f5;
    color: white;
    text-align: center;
    min-width: 150px;
    font-size: initial; /*初始字体大小*/
    font-weight: bold;
    letter-spacing: 1.5px; /*字体间距*/
    cursor: pointer; /*光标变成手指*/
}

.desc-warp {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.desc-warp-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-around;
    text-align: center;
    padding: 3rem 17% 2rem 12%;
    z-index: 6;
}

.sign-in-desc {
    pointer-events: none;
}

.sign-up-mode .sign-in-desc {
    pointer-events: all;
}

.sign-up-mode.sign-up-desc {
    pointer-events: none;
}

.content {
    width: 100%;
    transition: transform 0.9s ease-in-out;
    transition-delay: .6s;
}

.sign-in-desc img,
.sign-in-desc .content {
    transform: translateX(800px);
}

.sign-up-mode .sign-in-desc img,
.sign-up-mode .sign-in-desc .content {
    transform: translateX(0);
}

.sign-up-mode .sign-up-desc img,
.sign-up-mode.sign-up-desc .content {
    transform: translateX(-800px);
}

button {
    outline: none;
    padding: 6px 8px;
    min-width: 100px;
    text-align: center;
    border-radius: 30px;
    border: 2px solid #fff;
    background: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:active {
    background: rgba(255, 255, 255, .1);
}

img {
    width: 100%;
    display: block;
    transition: transform 0.9s ease-in-out;
    transition-delay: .5s;
}

